package com.spring.xmlrules;

import lombok.Getter;

/**
 * @Description:
 * @Auther: zhibo
 * @Date: 2018/8/23 17:33
 */
@Getter
public enum IocRules {
    BEAN_RULE("bean", "id", "class"),
    SNAN_RULE("component-scan", "base-package", "null"),
    /**
     * set注入的规则
     */
    SET_INJECT("property", "name", "value"),
    /**
     * 构造器注入的规则
     */
    CONS_INJECT("constructor-arg", "value", "index");
    private String type;
    private String name;
    private String value;
    IocRules(String property, String name, String value) {
        this.type  = property;
        this.name  = name;
        this.value = value;
    }
}
